<?php
header("Content-Type: text/css");

$filenames = array();
$res = opendir("../../img/backgrounds/");
while(false !== ($filename = readdir($res))) {
	if ($filename != "." && $filename != "..") {
		$filenames []= $filename;
	}
}
$index = rand(0, count($filenames)-1);
$selected = $filenames[$index];
closedir($res);
?>

body.home-body-class {
	background: url("../../img/backgrounds/<?php echo $selected; ?>") repeat scroll 0 0 transparent;
	background-color: #000000;
	color: #FFFFFF;
}
span.title-class {
	text-align: center;
	font-family: Times, serif;
	font-style: italic;
	font-size: 24px;
}

table.HomeView,
table.SearchEngineView {
	width: 100%;
}

table.publicitary {
	width: 100%;
}

table.publicitary td.left-cell,
table.publicitary td.right-cell {
	width: 15%;
	background-image: url("../../img/filmroll.jpg");
	background-repeat: repeat-y;
	background-position: center top;
}

table.publicitary td.center-cell {
	width: 70%;
}

div.name-title {
text-shadow: 0 0 2px #FF0000;

	text-align: center;
	font-size: 200%;
	font-family: Times, serif;
	font-style: italic;
	padding: 20px 20px 20px 20px;
}

div.intro {
	padding: 10px 15% 10px 15%;
	font-size: 85%;
	text-align: center;
}